# Project: objectmd
# (c) 2005, Yudi Rosandi

#CXX = g++ -m64 -O3

OCL_INCLUDE_PATH=/opt/amd/include
OCL_LIBRARY_PATH=/opt/amd/lib/x86_64

CXX = g++ -g -Wall
CXXFLAGS = -I../include -I$(OCL_INCLUDE_PATH) -L$(OCL_LIBRARY_PATH)
CXXLIBS = -lOpenCL
RM = rm

OBJ = machine.o program.o
EXE = gpurun
	 
all: gpurun


.c.o: 
	$(CXX) -c $*.c $(CXXFLAGS)

gpurun: $(OBJ) $(EXE).cpp
	$(CXX) -o $(EXE) $(EXE).cpp *.o $(CXXFLAGS) $(CXXLIBS)
	
clean: 
	${RM} -f *.o $(EXE) *.log
